<script>
export default {
  onLaunch: function () {
    console.log("App Launch");
  },
  onShow: function () {
    console.log("App Show");
  },
  onHide: function () {
    console.log("App Hide");
  },
  mounted() {
    document.body.style.overflow = "hidden";
    document.body.style.touchAction = "none";
    var orignSetItem = window.localStorage.setItem;
    window.localStorage.setItem = function (key, newValue) {
      var newSetItemEvent = new Event("newSetItemEvent");

      // do something you want
      newSetItemEvent.newValue = newValue;

      window.dispatchEvent(newSetItemEvent); // 抛出自定义事件
      orignSetItem.apply(this, [key, newValue]);
    };
  },
};
</script>

<style lang="scss">
@import "@/uni_modules/uview-ui/index.scss";
/*每个页面公共css */
@font-face {
  font-family: "ALiDaKai";
  src: url("./static/fonts/ALiDaKai.ttf");
}
@font-face {
  font-family: "ALiLingDong";
  src: url("./static/fonts/ALiLingDong.ttf");
}
@font-face {
  font-family: "GanBei";
  src: url("./static/fonts/GanBei.ttf");
}
@font-face {
  font-family: "Hei";
  src: url("./static/fonts/Hei.ttf");
}
@font-face {
  font-family: "JinBu";
  src: url("./static/fonts/JinBu.ttf");
}
</style>
